<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'网站配置'=>array($this->pre_module_url.'/setting/webconfig'),
	'后台菜单管理'=>array($this->pre_module_url.'/admmenu/index'),	
);

?>

<!--排序表单 -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>$this->pre_module_url.'/admMenu/save',
	'method'=>'post',
	'id' => 'savemenu',
 )); ?>
	<div class="pro_filter c_f filter">
  		<?php echo CHtml::link('保存<b class="mem_bgx left"></b><b class="mem_bgx right"></b>','javascript:void(0)',array('class'=>'mem_bgx link_btn mr5','onclick'=>'$("#savemenu").submit()'))?>
	</div>
	<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<th width="" class="pl15">菜单名称</th>
			<th width="26%">菜单地址</th>
			<th width="14%">排序</th>
			<th width="8%">类型</th>
			<th width="7%">状态</th> 
			<th width="12%"><?php echo CHtml::link('新建一级菜单', array('create','pid'=>0)); ?></th> 
			<th width="12%">操作</th>                                                    
		</tr>
	</table>
 <ul class="main_class">
	<?php $this->widget('zii.widgets.CListView', array(
		'dataProvider'=>$model->search(),
		'itemView'=>'_view',
		'emptyText'=>"",
		'template'=>'{items}',
		'enablePagination'=>'false',
		'summaryText'=>'',
		'tagName'=>'ul',
		'itemsCssClass'=>'',
		'htmlOptions'=>array('class'=>'type_list')
	)); 
	?>
</ul>
<?php $this->endWidget(); ?>

<script type="text/javascript">
$(function(){
	$('.ico_fold').bind('click',function(){
		$(this).parent().parent().next('ul').toggle();
		$(this).toggleClass('ico_del');
		$(this).toggleClass('ico_fold');
	});
});
</script>
